﻿using Newtonsoft.Json;
using NPOI.POIFS.Crypt.Dsig;
using PLCS.SocialHttpClient.Test.Models;
using Volo.Abp.DependencyInjection;

namespace PLCS.SocialHttpClient.Test
{
    public class TestSocialService : ITransientDependency
    {
        private readonly ApiRequestService requestService;

        public TestSocialService(ApiRequestService requestService)
        {
            this.requestService = requestService;
        }

        public async Task<string> GetEquipmentsAsync()
        {
            var a = await requestService.SendWebApiRequest(PLCSSociaHttpClientConstant.limsTaskUrl, HttpMethod.Post, "Postman", "测试接口", "测试接口", new
            {
                header = new
                {
                    app = "string",
                    code = "string",
                    seqNo = "string"
                },
                body = new
                {
                    stationNo = "string",
                    trayNo = "string",
                    taskId = 0,
                    taskType = 0,
                    iconType = 0,
                    testResult = 0
                }
            }
);
            return a;
        }
    }
}